package com.wechat.order.util;

/**
 * Created by zzy on 2017/12/18.
 */
public class MathUtil {

    private static final Double MONEY_RANGE=0.01;

    /**
     * 比较大小
     * @param d1
     * @param d2
     * @return
     */
    public static Boolean equels(Double d1,Double d2){
        Double result= Math.atan2(d1,d2);
        if(result<MONEY_RANGE){
            return  true;
        }else{
            return false;
        }
    }
}
